//
//  BuZhuJinZheDieCell.m
//  FactorySale
//
//  Created by 李 on 2020/4/1.
//  Copyright © 2020 主事丫环. All rights reserved.
//

#import "BuZhuJinZheDieCell.h"

@implementation BuZhuJinZheDieCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        
        //配件信息图片  文字
        UIImageView *infoImage = [[UIImageView alloc]initWithFrame:CGRectMake(20, 11, 4, 15)];
        infoImage.image = [UIImage imageNamed:@"圆角矩形 22"];
        [self.contentView addSubview:infoImage];
        
        UILabel *infoLab = [[UILabel alloc]initWithFrame:CGRectMake(36, 12, 100, 14)];
        infoLab.font = FontSize(14);
        infoLab.textColor = [UIColor colorWithHexString:@"#333333"];
        infoLab.text = @"配件信息";
        [self.contentView addSubview:infoLab];
        
        UIView *lineView = [[UIView alloc]initWithFrame:CGRectMake(15, infoLab.bottom+11, ScreenW-30, 0.5)];
        lineView.backgroundColor = [UIColor colorWithHexString:@"#E5E5E5"];
        [self.contentView addSubview:lineView];
        
        UIButton *zhanKaiBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        zhanKaiBtn.frame = CGRectMake(ScreenW-20-44, 0, 44, 44);
        [zhanKaiBtn setImage:[UIImage imageNamed:@"向下"] forState:UIControlStateNormal];
        //[zhanKaiBtn setImage:[UIImage imageNamed:@"向上"] forState:UIControlStateNormal];
        [self.contentView addSubview:zhanKaiBtn];
        self.zhanKaiBtn = zhanKaiBtn;
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
